﻿// JScript 文件
Ext.onReady(function(){   
    Ext.BLANK_IMAGE_URL = "Scripts/resources/default/s.gif";
    Ext.QuickTips.init();    
    var item1 = Ext.create('Ext.Panel', {
        title: '导航栏',
        contentEl: 'UMenu',
        iconCls:'home',
        collapsible: false
    });  
    Ext.create('Ext.container.Viewport', {
        layout: 'border',
        renderTo: Ext.getBody(),
        items: [{                    
            region: 'north',
            contentEl: 'header',
            height:40,
            border: false
        }, {
            region: 'west', 
            margins: '0 0 0 5',
            width: 160,
            layout: 'accordion',        
            items: item1
        }, {
            region: 'center',
            layout: 'fit',
            xtype: 'panel',
            margins: '0 5 0 0',
            items: {
                title: '<h6 id="contentTitle">欢迎</h6>',    
                border: false,      
                contentEl: 'content'         
            }
        }, {                    
            region: 'south',
            xtype: 'box',
            height: 5,
            border: false
        }]
    });    
    Ext.select('.menubar').each(function(i){
        i.on('mouseover',function(e,g){
            g.className = 'menubar menuover';
        });
        i.on('mouseout',function(e,g){        
            g.className = 'menubar';
        });
    });   
    Ext.get("tool-1025").hide();
});
